﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyBlog.Common;
using MyBlog.Unity;
using MyBlog.ServiceInterface;

namespace MyBlog
{
    /// <summary>
    /// 包含了小博客的所有服务接口
    /// </summary>
    public static class XiaoBoKe 
    {
        /// <summary>
        /// 用户接口
        /// </summary>
        public static IAccountService AccountService => UnityConfig.GetService<IAccountService>();

        /// <summary>
        /// 相册图片接口
        /// </summary>
        public static IAlbumService AlbumService => UnityConfig.GetService<IAlbumService>();

        /// <summary>
        /// 文章接口
        /// </summary>
        public static IArticleService ArticleService => UnityConfig.GetService<IArticleService>();

        /// <summary>
        /// 文章类别接口
        /// </summary>
        public static ICategoryService CategoryService => UnityConfig.GetService<ICategoryService>();

        /// <summary>
        /// 留言接口
        /// </summary>
        public static IMessageService MessageService => UnityConfig.GetService<IMessageService>();

        /// <summary>
        /// 心情接口
        /// </summary>
        public static IMoodService MoodService => UnityConfig.GetService<IMoodService>();

        /// <summary>
        /// 日志接口
        /// </summary>
        public static ISysLogService SysLogService => UnityConfig.GetService<ISysLogService>();

        /// <summary>
        /// 访客接口
        /// </summary>
        public static IVisitorService VisitorService => UnityConfig.GetService<IVisitorService>();

        /// <summary>
        /// 标签数据接口
        /// </summary>
        public static ITagService TagService => UnityConfig.GetService<ITagService>();

        /// <summary>
        /// 留言回复数据接口
        /// </summary>
        public static IMsgReplyService MsgReplyService => UnityConfig.GetService<IMsgReplyService>();

        /// <summary>
        /// 心情评论数据接口
        /// </summary>
        public static IMoodCommentService MoodCommentService => UnityConfig.GetService<IMoodCommentService>();

        /// <summary>
        /// 文章评论数据接口
        /// </summary>
        public static IArticleCommentService ArticleCommentService => UnityConfig.GetService<IArticleCommentService>();

        /// <summary>
        /// Bug数据接口
        /// </summary>
        public static IBugService BugService => UnityConfig.GetService<IBugService>();

        /// <summary>
        /// 关注接口
        /// </summary>
        public static IConcernService ConcernService => UnityConfig.GetService<IConcernService>();

        /// <summary>
        /// 通知接口
        /// </summary>
        public static INoticeService NoticeService => UnityConfig.GetService<INoticeService>();

        /// <summary>
        /// 更新记录
        /// </summary>
        public static ISysHistoryService SysHistoryService => UnityConfig.GetService<ISysHistoryService>();

        /// <summary>
        /// 每日一说
        /// </summary>
        public static IWordsService WordsService => UnityConfig.GetService<IWordsService>();

        /// <summary>
        /// 每日一说评论
        /// </summary>
        public static IWordCommentService WordCommentService => UnityConfig.GetService<IWordCommentService>();

        public static ISysInfoService SysInfoService => UnityConfig.GetService<ISysInfoService>();
    }
}